package com.myreminder.data;

import java.util.LinkedList;

import javax.persistence.Id;
import javax.persistence.Transient;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.googlecode.objectify.annotation.Entity;

@Entity
public class User implements IsSerializable{
	public @Id String facebookID;
	public String name;
	public String email;
	
	@Transient
	public LinkedList<Reminder> reminder = new LinkedList<Reminder>();
	
	private User(){}

	public User(String name, String email, String facebook) {
		super();
		this.name = name;
		this.email = email;
		this.facebookID = facebook;
	}

	public User(String facebookID, String name, String email,
			LinkedList<Reminder> reminder) {
		super();
		this.facebookID = facebookID;
		this.name = name;
		this.email = email;
		this.reminder = reminder;
	}
	
	public void addReminder(Reminder r){
		reminder.add(r);
	}

}
